package main

import (
	"fmt"
	"strconv"
)

func main(){
	text1 := "\"what's that?\",he said"
	text2 := `"what's that?",he said`
	radicals := "√ \u221A \U0000221a"
	fmt.Println(text1)
	fmt.Println(text2)
	fmt.Println(radicals)
	text := "0123456789"
	end := "末尾"
	a := "abc"
	b := "def"
	a += b//字符串a的后边添加b字符串
	fmt.Println(a)//这时的a字符串已经拼接后的字符串

	fmt.Println(text + end)//连接字符串
	fmt.Println(text[5])//字符串中索引位置（uint8类型）处的原始字节
	fmt.Println(text[5:8])//从位置5到8-1处取得的字符串
	fmt.Println(text[:5])//从位置0到5-1处取得的字符串
	fmt.Println(text[2:])//从位置2到最后的字符串
	fmt.Println(len(text1))//字符串长度
	fmt.Println(len([]rune(text)))//
	fmt.Println([]rune(text))//
	fmt.Println(string(65),"---------",string(53))//
	fmt.Println(strconv.Itoa(5))//
	fmt.Println(fmt.Sprint(58))//
}
